package com.pojo;

import java.util.List;

public class PageBean<T> {
    private List<T> data;//分页数据集合
    private int total;//总条数
    private int limit;//每页的行数
    private int current;//当前页数

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public PageBean() {
    }

    public PageBean(List<T> data, int total, int limit, int current) {
        this.data = data;
        this.total = total;
        this.limit = limit;
        this.current = current;
    }
}
